Skip to contentSkip to conversation

Fury X (Fiji) LEDs do not reflect GPU load

Bug 97590 [email protected] 1 participant 18 messages Sep 4, 2016 – May 22, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97590

Bug ID: 97590
Summary: Fury X (Fiji) LEDs do not reflect GPU load
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Under Catalyst (fglrx) on Ubuntu 14.04, LEDs on Fury X graphics cards would reflect the GPU load. This behaviour matches Windows. ie. Stand-by mode would utilize a single green LED, low power would use one red LED, max power would light up all 8 LEDs, etc. You can see this behaviour here:
https://www.youtube.com/watch?v=Evkk4HmjHOw

This helps give a nice immediate visual feedback showing what the cards are actually doing, and can improve PC build aesthetics.

Since upgrading to AMDGPU + Mesa, all LEDs are permanently on, implying full load (or maximum power draw?) at all times. Hopefully this is not what is actually happening.

FWIW, the AMDGPU Pro stack also has this issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #1 from John Bridgman <[email protected]> --- There was a Phoronix article recently celebrating the addition of an LED driver to the Nouveau driver... guessing that something similar will need to be done for amdgpu eventually.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #2 from Adam Bolte <[email protected]> --- Ah yep. Found the article you were referring to.

http://www.phoronix.com/scan.php?page=news_item&px=Nouveau-LED-Driver

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #3 from Adam Bolte <[email protected]> ---
Is it possible the driver code for the LED controller used by fglrx can be released to get the ball rolling on this? Someone I should get in contact with perhaps? Or is this actually being worked on (or at least scheduled to be worked on) internally at AMD?

It's been almost six months since this regression was initially reported (I am told the free software stack is the AMD-recommended upgrade path for consumers, so I feel justified in calling it a regression from that perspective). I know the AMD devs are busy people, but it would be great to see some progress on this before the cards I purchased are eventually retired.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #4 from Alex Deucher <[email protected]> --- Created attachment 129828
--> https://bugs.freedesktop.org/attachment.cgi?id=129828&action=edit
possible fix

Does this patch work?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #5 from Adam Bolte <[email protected]> --- Wow Alex - I wasn't expecting anything for months, let alone hours! Thanks!

I'll certainly be trying this out tonight and will report back as soon as I know.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #129828|0                           |1

is obsolete| |

--- Comment #6 from Alex Deucher <[email protected]> --- Created attachment 129851
--> https://bugs.freedesktop.org/attachment.cgi?id=129851&action=edit
possible fix

This should apply cleanly to upstream.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #7 from [email protected] ---
AFAIK, Sapphire RX480/470 Nitro boards also have LEDs that change colors depending on GPU Load / temperature (displaying mode can be switched with hardware button). Would it work for them too?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #8 from Alex Deucher <[email protected]> --- (In reply to network723 from comment #7)

Quoted 3 lines

AFAIK, Sapphire RX480/470 Nitro boards also have LEDs that change colors depending on GPU Load / temperature (displaying mode can be switched with hardware button). Would it work for them too?

No. I don't see any relevant code for polaris. Those may be some OEM specific implementation handled independently of the driver. Do they work?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #9 from Adam Bolte <[email protected]> ---
I'm very excited to say that this patch is working great. Huge thanks! I know it's crazy but there's something very satisfying about having the LEDs show what the cards are doing. :)

I noticed attachment 129828 applies cleanly to 4.10 so I ended up using that. I tried to test attachment 129851 but wasn't sure which repo/branch I was supposed to apply it to. I tried
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git (master branch) and git://people.freedesktop.org/~airlied/linux (drm-next branch) but I'm clearly looking in the wrong place. Happy to re-test if you point me in the right direction of the correct kernel source code to use.

Many games were tested (including a number under Wine with Gallium on Nine and d3d9 patches). I only tested this against the free software stack so far. I tested the Talos Principle (to test Vulkan), a bunch of Feral ports, etc. At all times the first Fury X LEDs on the primary card would flicker in the same way as they do under Windows, which is terrific.

The only difference between this patch and the Windows behaviour is with the second card at idle - Windows will display only a single green LED which I believe indicates the card is in its lowest power mode. I was unable to reproduce that same status with your patch. However I'm guessing this means Windows puts the unused card in to a lower power state than AMDGPU is currently able, and the LEDs are actually doing the right thing. No big deal either way.

Thanks again Alex.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #10 from Adam Bolte <[email protected]> ---
I found the repo (git://people.freedesktop.org/~agd5f/linux and the drm-next-4.12-wip branch with the commit already applied), so I built that for testing but didn't have any luck. The primary GPU LEDs were stuck on maximum, the second was a single blue LED (as before), and I lost signal multiple times when trying to log in through my display manager.

Probably some unrelated regression is affecting that branch, preventing my testing of your revised patch.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #11 from Alex Deucher <[email protected]> ---
Use whichever patch applies to your tree. They are identical other than some fuzz related to other changes in the same file depending on what kernel version you are using.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #12 from Adam Bolte <[email protected]> --- Good to know it doesn't matter for testing purposes. In that case, I'm happy for this to be marked as fixed - unless the policy on doing that is to wait until the patch is accepted upstream?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #13 from Alex Deucher <[email protected]> ---
I've queued the patch for upstream. I'll close it once the patch makes it into Linus' tree.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #14 from Vedran Miletić <[email protected]> --- (In reply to Adam Bolte from comment #9)

Quoted 7 lines

The only difference between this patch and the Windows behaviour is with the second card at idle - Windows will display only a single green LED which I believe indicates the card is in its lowest power mode. I was unable to reproduce that same status with your patch. However I'm guessing this means Windows puts the unused card in to a lower power state than AMDGPU is currently able, and the LEDs are actually doing the right thing. No big deal either way.

Alex, can you comment on this? Is it a known issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #15 from Alex Deucher <[email protected]> --- (In reply to Vedran Miletić from comment #14)

Quoted 10 lines

(In reply to Adam Bolte from comment #9)

Quoted 7 lines

The only difference between this patch and the Windows behaviour is with the second card at idle - Windows will display only a single green LED which I believe indicates the card is in its lowest power mode. I was unable to reproduce that same status with your patch. However I'm guessing this means Windows puts the unused card in to a lower power state than AMDGPU is currently able, and the LEDs are actually doing the right thing. No big deal either way.

Alex, can you comment on this? Is it a known issue?

Windows powers down dGPUs when they are not in use. This is not supported yet in Linux outside of PX systems.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

--- Comment #16 from Adam Bolte <[email protected]> --- Looks like this patch has found its way into 4.12-rc1. Thanks again Alex.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97590

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #17 from Michel Dänzer <[email protected]> --- Thanks for the report and testing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel